Skip to content

Conversation

einalien
Copy link
Owner

@einalien einalien commented Nov 1, 2026 •

Summary

This PR extends the existing CI/CD pipeline by adding a manually triggered PROD deployment after successful TEST and STAGE deployments.

Changes

  • Added a new deploy-prod job with a dependency on deploy-stage.
  • Added a workflow_dispatch input to explicitly enable PROD deployment.
  • Restricted PROD deployment to manual execution from the main branch.
  • Integrated GitHub environment protection rules for PROD.
  • Added environment-specific OpenStack authentication using GitHub secrets and variables.
  • Added Kubernetes authentication and remote state initialization for PROD.
  • Configured sequential deployment of PROD network and frontend infrastructure.
  • Reused OpenTofu plan validation to block destructive infrastructure changes.
  • Added cleanup of temporary credentials, plans, and logs.

Deployment Workflow

Automatic deployment:

CI → TEST → STAGE

Manual PROD deployment:

TEST → STAGE → PROD (requires explicit manual trigger and any configured environment approval)

Validation

  • Verified YAML structure and job dependencies.
  • Verified Bash script syntax.
  • Confirmed PROD requires manual workflow dispatch.
  • Confirmed PROD uses environment-specific configuration paths.
  • Confirmed destructive OpenTofu changes are blocked by plan validation.
  • Verify successful PROD deployment through GitHub Actions.
  • Verify PROD infrastructure resources in OpenStack.

Notes

PROD deployment is disabled for normal pushes to main and requires the deploy_prod input to be enabled during manual workflow execution.

The PROD deployment supports initial infrastructure provisioning without requiring existing managed resources in its remote state.

@einalien einalien added the enhancement New feature or request label Nov 1, 2026
@einalien einalien self-assigned this Nov 1, 2026
@einalien einalien merged commit a848402 into main Nov 1, 2026
1 check passed
@einalien einalien deleted the feat/cd-deploy-prod branch November 1, 2026 22:08
Sign in to join this conversation on GitHub.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant